package com.zhq.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 * @author yp
 * @since 2025-01-07
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Stu implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sid;
    
    private String sname;
    
    private String sex;
    
    private Integer age;
    
    private String addr;
    
    private Integer cid;
    
    @TableField(exist = false)
    private String cname;
    @TableLogic
    private Integer deleted;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
